export interface Menu {
    id:string|number,
    name: string,
    locale: string,
    parentId:string|number,
    type: string,
    routeName: string,
    routePath: string,
    componentPath: string,
    icon: string,
    sort: string,
    authority: string,
    enabled:boolean,
    cached?:boolean,
    link?:boolean,
    hidden?: boolean,
    createBy: string|number,
    createTime: string,
    updateBy: string|number,
    updateTime: string,
    children: Menu[]
}

export type MenuTree = Pick<Menu, 'id' | 'name' |'children'>